package com.hex.ds.hdtp.core.app.script.test.dto.response;

import lombok.Data;
import org.apache.commons.io.FilenameUtils;

import java.io.File;

/**
 * @Package: com.hex.ds.hdtp.core.app.script.test.dto.response
 * @ClassName ScriptDataTestResultResponseDto
 * @Description: 带数据测试脚本结果ResponseDto对象
 * @Author: wz.li
 * @Date 2023/8/7 11:59
 * @Version v2.0.2
 **/
@Data
public class ScriptDataTestResultResponseDto {

    private String pkId;

    private String batchCode;

    private String taskPkId;

    private String scriptConvertListPkId;

    private String scriptTestListPkId;

    private String scriptPath;

    private String scriptName;

    private String bizDate;

    private String status;

    private String startTime;

    private String endTime;

    private String errorMessage;

    public String getScriptAbsolutePath() {
        return FilenameUtils.separatorsToUnix(scriptPath + File.separator + scriptName);
    }
}
